package com.ddz.qpz.sms.client;

import com.ddz.qpz.sms.client.fallback.CoreUserInfoClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: LiQingBo
 * @Date: 2021/10/11-10-11-22:24
 * @Description: com.ddz.qpz.sms.client
 * @version: 1.0
 */
@FeignClient(value = "core", fallback = CoreUserInfoClientFallback.class)
public interface CoreUserInfoClient {

    @GetMapping("/api/core/userInfo/checkMobile/{mobile}")
    boolean checkMobile(@PathVariable String mobile);
}

